package jiggle;

public class InverseVertexEdgeRepulsionLaw extends VertexEdgeRepulsionLaw {

	public InverseVertexEdgeRepulsionLaw (Graph g, double k) {
		super (g, k, 1);
	}

	public InverseVertexEdgeRepulsionLaw (Graph g, double k, double s) {
		super (g, k, s);
	}

	@Override
    public double pairwiseWeights (double pref, double curr) {
		if (curr >= pref) return 0; else return square(pref/curr) - pref / curr;
	}
	
}